package com.vodone.v1pin.productlist.vo
{
	import mx.collections.ArrayCollection;

	public class PropertyVO
	{
		public function PropertyVO( obj:Object = null )
		{
			if( null != obj )
			{
				parseData( obj );
			}
		}
		
		private function parseData( obj:Object ):void
		{
			if( obj.hasOwnProperty("id"))
			{
				this.id = obj["id"];
			}
			if( obj.hasOwnProperty("name"))
			{
				this.name = obj["name"];
			}
			if( obj.hasOwnProperty("data"))
			{
				this.data = ProductListVO.parseList( obj , "data" , QueryItemVO );
			}
		}
		/**
		 * 属性分类的id 
		 */		
		public var id:String;
		/**
		 * 属性分类的名称 
		 */		
		public var name:String;
		/**
		 * 属性下面的选择条件 
		 */		
		public var data:ArrayCollection;
	}
}